<template>
  <!--  <router-view></router-view>-->
  <keep-alive>
    <router-view v-if="route.meta.keepAlive" class="need-scroll"></router-view>
  </keep-alive>
  <!-- 非缓存组件跳转页面 -->
  <router-view v-if="!route.meta.keepAlive"></router-view>


  <van-tabbar v-model="active" route class="tabbar">
    <van-tabbar-item icon="home-o" to="/b">标签</van-tabbar-item>
    <van-tabbar-item icon="search" to="/c">标签</van-tabbar-item>
    <van-tabbar-item icon="friends-o" to="/d">标签</van-tabbar-item>
    <van-tabbar-item icon="setting-o">标签</van-tabbar-item>
    <van-tabbar-item icon="setting-o">标签</van-tabbar-item>
  </van-tabbar>
</template>


<script setup>
import {useRoute} from "vue-router";
const route = useRoute();
</script>


<style scoped lang="scss">

</style>
